package com.kevin.service.forest;

import com.dtflys.forest.http.ForestRequest;
import com.dtflys.forest.interceptor.Interceptor;
import com.dtflys.forest.reflection.ForestMethod;
import com.kevin.service.properties.RollApiProperties;
import org.apache.poi.ss.formula.functions.T;

public class RollApiInterceptor implements Interceptor<T> {
    @Override
    public void onInvokeMethod(ForestRequest request, ForestMethod method, Object[] args) {
        request.addQuery("app_id", RollApiProperties.getAppId());
        request.addQuery("app_secret", RollApiProperties.getSecret());
    }
}
